import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";


// 查询用户列表
export function coManagerList(query) {
  return request({
    url: '/zpSysUser/coManagerList',
    method: 'get',
    params: query
  })
}

// 新增协管员
export function addCoManager(data) {
  return request({
    url: '/zpSysUser/addCoManager',
    method: 'post',
    data: data
  })
}

// 查询用户详细
export function getByUserId(userId) {
  return request({
    url: '/zpSysUser/getByUserId',
    method: 'post',
    data: userId
  })
}

// 修改用户
export function updateCoManager(data) {
  return request({
    url: '/zpSysUser/updateCoManager',
    method: 'post',
    data: data
  })
}

// 修改用户
export function delCoManager(data) {
  return request({
    url: '/zpSysUser/delCoManager',
    method: 'post',
    data: data
  })
}
